
<div class="row">
	<div class="col-xs-12">
		<!-- PAGE CONTENT BEGINS -->
		<form class="form-horizontal" method="post" role="form" action="/admin/peoples/create<?php echo isset($item) && $item ?'/'. $item->id: '/0';?>">
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="last_name"> 姓名 </label>
				<div class="col-sm-9">
					<input type="text" class="col-xs-10 col-sm-5 col-md-7" id="last_name" name="last_name" placeholder="请输入姓名"  value="<?php echo isset($item) && $item ? $item->last_name : ''; ?>">
				</div>
			</div>			
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="gender"> 性别 </label>
				<div class="col-sm-9">
					<select name="gender" id="gender">
                    	<option <?php echo isset($item) && $item ? $item->gender == '男' ? ' selected':  '': ''; ?>>男</option>
                    	<option <?php echo isset($item) && $item ? $item->gender == '女' ? ' selected':  '': ''; ?>>女</option>
                	</select>					
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="birthday"> 出生日期 </label>
				<div class="col-sm-9">
					<input type="text" class="col-xs-10 col-sm-5 col-md-7" id="birthday" name="birthday" placeholder="请输入出生日期：如（1990年01月01日）19000101"  value="<?php echo isset($item) && $item ? $item->birthday : ''; ?>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="phone"> 手机号码 </label>
				<div class="col-sm-9">
					<input type="text" class="col-xs-10 col-sm-5 col-md-7" id="phone" name="phone" placeholder="请输入手机号码"  value="<?php echo isset($item) && $item ? $item->phone : ''; ?>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="identity"> 身份证号码 </label>
				<div class="col-sm-9">
					<input type="text" class="col-xs-10 col-sm-5 col-md-7" id="identity" name="identity" placeholder="请输入身份证号码"  value="<?php echo isset($item) && $item ? $item->identity : ''; ?>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="address"> 居住地址 </label>
				<div class="col-sm-9">
					<input type="text" class="col-xs-10 col-sm-5 col-md-7" id="address" name="address" placeholder="请输入居住地址"  value="<?php echo isset($item) && $item ? $item->address : ''; ?>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="residence_address"> 户籍地址 </label>
				<div class="col-sm-9">
					<input type="text" class="col-xs-10 col-sm-5 col-md-7" id="residence_address" name="residence_address" placeholder="请输入户籍地址"  value="<?php echo isset($item) && $item ? $item->residence_address : ''; ?>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="introduction"> 个人简介 </label>
				<div class="col-sm-9">
					<input type="text" class="col-xs-10 col-sm-5 col-md-7" id="introduction" name="introduction" placeholder="请输入个人简介"  value="<?php echo isset($item) && $item ? $item->introduction : ''; ?>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="email"> 邮箱地址 </label>
				<div class="col-sm-9">
					<input type="text" class="col-xs-10 col-sm-5 col-md-7" id="email" name="email" placeholder="请输入邮箱地址"  value="<?php echo isset($item) && $item ? $item->email : ''; ?>">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 上传头像 </label>
				<div class="col-sm-9">					
					<div class="input-group col-xs-10 col-sm-7">
						<input type="text" class="form-control" id="thumbnail" name="photo" placeholder="上传本地产品图片" value="<?php echo isset($item) && $item ? $item->photo : ''; ?>" data-toggle="modal" data-target="#modal-upload">
						<span class="input-group-addon">
							<a href="#" name="thumbnail" data-panel="qrcode" data-toggle="modal" data-target="#modal-upload"><i class="ace-icon fa fa-upload"></i></a>
						</span>
					</div>
				</div>
			</div>
			<div class="clearfix form-actions">
				<div class="col-md-offset-3 col-md-9">
					<button class="btn btn-info" type="submit">
						<i class="ace-icon fa fa-check bigger-110"></i>
						提交
					</button>

					&nbsp; &nbsp; &nbsp;
					<button class="btn" type="reset">
						<i class="ace-icon fa fa-undo bigger-110"></i>
						重置
					</button>
				</div>
			</div>
		</form><!-- PAGE CONTENT ENDS -->
	</div><!-- /.col -->
</div><!-- /.row -->
  <script type="text/javascript">
  var path = "<?php echo \Input::get('action', false) == 'people_add' ? 'peoples' : 'peoples'; ?>";
  var imgpanel = '';
  
  function callback(file, data){
      var json = eval('(' + data + ')');
      if(json.status == 'succ'){
          $("#thumbnail").val(json.data);          
      }else{
          alert(json.msg);
      }
  }
</script>
<?php echo render('tools/upload'); ?>
<?php echo render('ace/public/confirm_modal'); ?>

<link rel="stylesheet" type="text/css" href="/statics/plugs/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css">

<script type="text/javascript" src="/statics/plugs/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="/statics/plugs/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>

<?php echo render('ace/public/alert_message'); ?>

